package control;

import dao.TransactionDAO;
import entity.Transaction;

public class TransactionControl{
	public Transaction getATransaction(String accountId, int index){
		TransactionDAO transactionDAO = new TransactionDAO();
		return transactionDAO.queryTransactions(accountId).get(index);
	}
	
	public int getHowManyTransactions(String accountId){
		TransactionDAO transactionDAO = new TransactionDAO();
		return transactionDAO.queryTransactions(accountId).size();
	}

}
